package eerbaar.v2.effects.internal;

import java.awt.Color;

import eerbaar.v2.effects.Effect;

public class EffectsFactory {

    public static Effect createPopupText(String text) {
        return new PopupText(text);
    }

    public static Ring createRingsThatFollow() {
        return new Ring();
    }

    public static Effect createRisingText(String text, double x, double y,
            Color color) {
        CanvasPosition position = new CanvasPosition(x, y);
        return new RisingText(text, position, color, 3000);
    }

    public static TimeLine createRisingTimeLine(CanvasPosition start, int maxAge) {
        Force force = new Force(0.0, -0.04);
        return new TimeLine(maxAge, force, start);
    }

}
